define(['knockout', 'durandal/app'], function(ko, app) {
	//middle
	var parentInfo = ko.observable('');
	return {
		parentInfo: parentInfo,
		activate:function(activationData){
			debugger;
			var d=ko.toJS(activationData);
			parentInfo(ko.toJSON(d.activeItem, null, 2));
		},
		attached: function(child, parent, settings) {
			debugger;
			//主要进行dom操作
		}
	}
});